package com.sunyard.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunyard.service.BaseService;
import com.sunyard.service.impl.TestServiceImpl;

@Controller
@RequestMapping("/base")
public class BaseController {

	@Autowired
	public BaseService service;
	
//	@Autowired
//	public BaseServiceImportent baseServiceImportent;
	
	@Autowired
	public TestServiceImpl testServiceImpl;
	
	@RequestMapping("/toTest")
	public String test(){
		service.show();
		testServiceImpl.delete();
		return "index";
	}
}
